# -*- coding: utf-8 -*-
from openerp.osv import fields, osv

class oecn_training_lesson(osv.osv):
    _inherit = 'oecn.training.lesson' #需要继承对象的name
    _columns = {
        'classroom_id': fields.many2one('oecn.training.classroom', u'教室'), #添加一个教室属性,为多对一对象
    }

oecn_training_lesson()
